//控制台打印乘法表
var s='';
for(let i=1;i<=9;i++){
	for(let j=1;j<=i;j++){
		s=s+j+"*"+i+"="+j*i+" ";
	}
	s=s+"\n"
}
console.log(s)
//控制台打印质数
//选中这块，ctrl+/,取消注释
var i;
var j;
for (i=2;i<=1000;i++){
	for(j=2;j<i;j++){
		if(i%j==0){
			break;
		}
	}
	if(i==j){
		console.log(i)
	}
}
//遍历数组
var l=[54,36,25,42]
var sum=0;
for(let i=0;i<=l.length-1;i++){
	sum+=l[i];
}
console.log(sum)
//遍历对象
var s = {name:'lilei', age:19, 'gender':'boy'};
for (let i in s)
{
	console.log(i+":"+s[i]);
}

